﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace MvcLinks.Controllers
{
    public class OtherController : Controller
    {
        //
        // GET: /Other/

        public ActionResult Index()
        {
            return View();
        }

        public ActionResult PageParam(int n, string msg)
        {
            return Content(string.Format("n: {0}, msg: {1}", n, msg));
        }

        public ActionResult CreateModel()
        {
            return View();
        }

        [HttpPost]
        public ActionResult PageModel(Models.MyModel m)
        {
            return View(m);
        }

        public ActionResult DefaultParam(int id)
        {
            return Content(id.ToString());
        }

    }
}
